# 访客
# 编写一个程序，提示用户输入名字。用户做出响应后，将其名字写入文件guest.txt中

user_name = input("Please enter your name: ")

with open('guest.txt', 'w') as file_object:
    file_object.write(str(user_name))
